_initRecorder();
global.screen.override_workspace_layout(Meta.ScreenCorner.TOPLEFT, false, -1, 1);
-
- Meta.keybindings_set_custom_handler('panel-run-dialog', function() {
- getRunDialog().open();
- });
}
function start() {
ExtensionSystem.loadExtensions();
}
+ if (sessionMode.hasRunDialog) {
+ Meta.keybindings_set_custom_handler('panel-run-dialog', function() {
+ getRunDialog().open();
+ });
+ }
+
if (sessionMode.hasOverview) {
Meta.keybindings_set_custom_handler('panel-main-menu', function () {
overview.toggle();
return true;
case Meta.KeyBindingAction.PANEL_RUN_DIALOG:
case Meta.KeyBindingAction.COMMAND_2:
+ if (!sessionMode.hasRunDialog)
+ return false;
+
getRunDialog().open();
return true;
case Meta.KeyBindingAction.PANEL_MAIN_MENU:
allowSettings: false,
allowExtensions: false,
allowKeybindingsWhenModal: true,
+ hasRunDialog: false,
sessionType: Shell.SessionType.GDM },
'user': { hasOverview: true,
allowSettings: true,
allowExtensions: true,
allowKeybindingsWhenModal: false,
+ hasRunDialog: true,
sessionType: Shell.SessionType.USER }
};